<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<div class="panel">
 <div class="panel-heading">
   	 查询区域
  </div>
  <div class="panel-body">
     <div class="row">
       <div class="col-md-4">
       <div class="input-group">
         <span class="input-group-addon">代理商号</span>
 		 <input type="text" class="form-control" placeholder="" id="queryAgeInfCode" name="queryAgeInfCode">
   		</div>
       </div>
         <div class="col-md-4">
           <div class="input-group">
         <span class="input-group-addon">代理商名称</span>
 		 <input type="text" class="form-control" placeholder=""  id="queryAgeTrueNamLike" name="queryAgeTrueNamLike">
   		</div>
   	
        </div>
         <div class="col-md-4">
         <button class="btn btn-success" type="button" id="searchBtn"><i class="icon-search"></i>搜索</button>
         </div>
     </div>
  
  </div>
  
</div>
 

<div  class="datagrid">

<div class="search-box">
   &nbsp;&nbsp;&nbsp;&nbsp;
  <button type="button" class="btn btn-primary" id="addBtn" data-toggle="modal" data-target="#addModal"><i class="icon-plus"></i>添加</button> &nbsp;&nbsp;&nbsp;&nbsp;
  <button type="button" class="btn btn-warning" id="updateBtn" data-target="#updateModal"><i class="icon icon-edit"></i>修改</button> &nbsp;&nbsp;&nbsp;&nbsp;
  <button type="button" class="btn btn-danger" id="deleteBtn" data-target="#deleteModal"><i class="icon icon-trash"></i>删除</button> &nbsp;&nbsp;&nbsp;&nbsp;
  <button type="button" class="btn btn-success" id="detailBtn" data-target="#detailModal"><i class="icon icon-info"></i>详情</button> &nbsp;&nbsp;&nbsp;&nbsp;
   <button type="button" class="btn btn-success" id="releaseBtn" data-target="#releaseModal"><i class="icon icon-trash"></i>解冻</button> &nbsp;&nbsp;&nbsp;&nbsp;
    <button type="button" class="btn btn-danger" id="frozenBtn" data-target="#frozenModal"><i class="icon icon-trash"></i>冻结</button> &nbsp;&nbsp;&nbsp;&nbsp;
  <button type="button" class="btn btn-primary" id="resetpwdBtn" data-target="#resetModal"><i class="icon icon-refresh"></i>重置密码</button> &nbsp;&nbsp;&nbsp;&nbsp;
</div>
<br>
<div class="datagrid-container" id="dataGridList" ></div>
    <div id="myPager" class="pager"  data-ride="pager" ></div>
</div>

<div class="modal fade"  id="addModal"><!--添加  -->
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
        <h4 class="modal-title">新增用户</h4>
      </div>
            <form id="addForm">
      <div class="modal-body">
        <div class="row">
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">用户名</span>
				  <input type="text" id="addUname" name="addUname" class="form-control" placeholder="">
				</div>
	    	</div>
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">姓名</span>
				  <input type="text" id="addName" name="addName" class="form-control" placeholder="">
				</div>
	    	</div>
	    </div>
	    <br>
        <div class="row">
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">密码</span>
				    <input type="text" id="addUpwd" name="addUpwd" class="form-control" placeholder="">
				</div>
	    	</div>
	    	
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">联系电话</span>
				  <input type="text" id="addUphone" name="addUphone" class="form-control" placeholder="">
				</div>
	    	</div>
	    </div>
	    <br>
	          <div class="row">
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">所属地区</span>
				    <div class="form-group  text-center  justify-content-center " id="addArea"></div>
				</div>
	    	</div>
	    	
	    	<div class="col-md-6">
	    		<div class="input-group">
            
			 	  <span class="input-group-addon">所属机构</span>
			 	  <div class="form-group text-center  justify-content-center" id="addOrg"></div>
				</div>
	    	</div>
	    </div>
	    <br>
        <div class="row">
	    	<div class="col-md-12">
	    		<div class="input-group">
				  <span class="input-group-addon">头像</span>
				  	<div  id="uploadHeadpic" class="uploader with-padding">
					  <div class="file-list" data-drag-placeholder="请拖拽文件到此处"></div>
					  <button type="button" class="btn btn-primary uploader-btn-browse"><i class="icon icon-cloud-upload"></i> 选择文件</button>
					</div>
					 <input type="hidden" id="addHeadpic" name="addHeadpic">	
				 
				</div>
	    	</div>
	    </div>
      </div>
      <div class="modal-footer">
      <input type="hidden" name="action" value="add"  />
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary" id="addSaveBtn">保存</button>
      </div>
      
      </form>
    </div>
  </div>
</div>
<div class="modal fade" id="deleteModal"><!-- 删除 -->
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
        <h4 class="modal-title">删除用户</h4>
      </div>
      <div class="modal-body">
        <p>您确定要删除此用户信息吗?</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" id="deleteSure">确定</button>
      </div>
    </div>
  </div>
</div>
<div class="modal fade"  id="updateModal"><!-- 修改 -->
<div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
        <h4 class="modal-title">修改菜单</h4>
      </div>
            <form id="updateForm">
      <div class="modal-body">
        <div class="row">
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">菜单编码</span>
				  <input type="text" id="updateMenuCode" name="updateMenuCode" class="form-control" placeholder="">
				</div>
	    	</div>
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">菜单名称</span>
				  <input type="text" id="updateMenuName" name="updateMenuName" class="form-control" placeholder="">
				</div>
	    	</div>
	    </div>
	    <br>
        <div class="row">
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">上级菜单名称</span>
				  <select  id="updateMenuParentCode" name="updateMenuParentCode" class="form-control">
				  	<option value="">请选择</option>
				  </select>
				</div>
	    	</div>
	    	
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">排序码</span>
				  <input type="text" id="updateSortNo" name="updateSortNo" class="form-control" placeholder="">
				</div>
	    	</div>
	    </div>
	    <br>
        <div class="row">
	    	<div class="col-md-12">
	    		<div class="input-group">
				  <span class="input-group-addon">描述</span>
				  <textarea  id="updateDescription" name="updateDescription" 
				  	cols="60" rows="5"
				  class="form-control"></textarea>
				</div>
	    	</div>
	    </div>
      </div>
      <div class="modal-footer">
     	<input type="hidden" id="updateMenuId" name="updateMenuId" />
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary" id="updateSaveBtn">保存</button>
      </div>
      
      </form>
    </div>
  </div>
</div>
<div class="modal fade"  id="detailModal"><!-- 详情 -->
<div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
        <h4 class="modal-title">菜单详情</h4>
      </div>
            <form id="detailForm">
      <div class="modal-body">
        <div class="row">
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">菜单编码</span>
				  <input type="text" id="MenuCode" name="MenuCode" class="form-control" placeholder="" readonly="true">
				</div>
	    	</div>
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">菜单名称</span>
				  <input type="text" id="MenuName" name="MenuName" class="form-control" placeholder="" readonly="true">
				</div>
	    	</div>
	    </div>
	    <br>
        <div class="row">
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">上级菜单名称</span>
				  <input type="text"  id="MenuParentCode" name="MenuParentCode" class="form-control"  placeholder="" readonly="true">
				</div>
	    	</div>
	    	
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">排序码</span>
				  <input type="text" id="SortNo" name="SortNo" class="form-control" placeholder="" readonly="true">
				</div>
	    	</div>
	    </div>
	    
	     <br>
	    	
        <div class="row">
        <div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">操作时间</span>
				    <input type="text" id="oprDate" name="oprDate" class="form-control" placeholder="" readonly="true">
				</div>
	    	</div>
	   
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">描述</span>
				  <textarea  id="Description" name="Description" 
				  	cols="60" rows="5"
				  class="form-control" readonly="true"></textarea>
				</div>
	    	</div>
	    </div>
      </div>
      <div class="modal-footer">
     	<input type="hidden" id="updateMenuId" name="updateMenuId" />
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
   
      </div>
      
      </form>
    </div>
  </div>
</div>
<div class="modal fade" id="frozenModal"><!-- 冻结 -->
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
        <h4 class="modal-title">冻结用户</h4>
      </div>
      <div class="modal-body">
        <p>您确定要冻结此用户信息吗?</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" id="frozenSure">确定</button>
      </div>
    </div>
  </div>
</div>
<div class="modal fade" id="releaseModal"><!-- 解冻 -->
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
        <h4 class="modal-title">解冻用户</h4>
      </div>
      <div class="modal-body">
        <p>您确定要解冻此用户信息吗?</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" id="releaseSure">确定</button>
      </div>
    </div>
  </div>
</div>

<div class="modal fade" id="resetModal"><!-- 重置密码 -->
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
        <h4 class="modal-title">重置密码</h4>
      </div>
      <div class="modal-body">
        <p>您确定要此用户密码吗?</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" id="resetSure">确定</button>
      </div>
    </div>
  </div>
</div>

<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.validate.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/localization/messages_zh.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/zui.uploader.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/config.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/age_user.js?version=132"></script>